import request from '@/utils/request'

/**
 * 新增
 * @param {*} data
 * @returns
 */
export function create(data) {
  return request({
    url: '/call-center/api/v1/factorFieldCombination',
    method: 'POST',
    data
  })
}
/**
 * 修改
 * @param {*} data
 * @returns
 */
export function update(data) {
  return request({
    url: '/call-center/api/v1/factorFieldCombination',
    method: 'PUT',
    data
  })
}
/**
 * 获取所有
 * @returns
 */
export function getAll() {
  return request({
    url: '/call-center/api/v1/factorFieldCombination/',
    method: 'GET'
  })
}
/**
 * 根据id获取详情
 * @param {*} id
 * @returns
 */
export function getById(id) {
  return request({
    url: `/call-center/api/v1/factorFieldCombination/${id}`,
    method: 'GET'
  })
}

/**
 * 批量删除
 * @param {*} ids
 * @returns
 */
export function deleteBatch(ids) {
  return request({
    url: `/call-center/api/v1/factorFieldCombination/deleteBatch`,
    method: 'DELETE',
    data: ids
  })
}
/**
 * 批量停用
 * @param {*} ids
 * @returns
 */
export function disableBatch(ids) {
  return request({
    url: `/call-center/api/v1/factorFieldCombination/disableBatch`,
    method: 'PUT',
    data: ids
  })
}

/**
 * 批量启用
 * @param {*} ids
 * @returns
 */
export function enableBatch(ids) {
  return request({
    url: `/call-center/api/v1/factorFieldCombination/enableBatch`,
    method: 'PUT',
    data: ids
  })
}

